%%
mkdir base
mkdir follow
mkdir endpoint
%%

mkdir segment
mkdir T1T2R
mkdir DTI
%%
% 
% * ITEM1
% * ITEM2
% 
mkdir LST
mkdir cat12
mkdir normed
mkdir CTnorm
mkdir screenshot
mkdir _niigz
mkdir DICOM


%%
mkdir catlong
%%
copyfile('.\base\_niigz\T1.nii.gz', '.\catlong\T1_0.nii.gz');
copyfile('.\follow\_niigz\T1.nii.gz', '.\catlong\T1_1.nii.gz');
copyfile('.\endpoint\_niigz\T1.nii.gz', '.\catlong\T1_2.nii.gz');
%%
%-----------------------------------------------------------------------
% Job saved on 06-Dec-2022 20:06:06 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7771)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.tools.cat.long.datalong.subjects = {
                                                       {
                                                       'T1_0.nii,1'
                                                       'T1_1.nii,1'
                                                       'T1_2.nii,1'
                                                       }
                                                       }';
matlabbatch{1}.spm.tools.cat.long.longmodel = 1;
matlabbatch{1}.spm.tools.cat.long.bstr = 0;
matlabbatch{1}.spm.tools.cat.long.nproc = 3;
matlabbatch{1}.spm.tools.cat.long.opts.tpm = {'D:\MRI\spm12\tpm\TPM.nii'};
matlabbatch{1}.spm.tools.cat.long.opts.affreg = 'mni';
matlabbatch{1}.spm.tools.cat.long.opts.biasacc = 0.5;
matlabbatch{1}.spm.tools.cat.long.extopts.APP = 1070;
matlabbatch{1}.spm.tools.cat.long.extopts.spm_kamap = 0;
matlabbatch{1}.spm.tools.cat.long.extopts.LASstr = 0.5;
matlabbatch{1}.spm.tools.cat.long.extopts.gcutstr = 2;
matlabbatch{1}.spm.tools.cat.long.extopts.WMHC = 1;
matlabbatch{1}.spm.tools.cat.long.extopts.registration.shooting.shootingtpm = {'D:\MRI\spm12\toolbox\cat12\templates_volumes\Template_0_IXI555_MNI152_GS.nii'};
matlabbatch{1}.spm.tools.cat.long.extopts.registration.shooting.regstr = 0.5;
matlabbatch{1}.spm.tools.cat.long.extopts.vox = 1.5;
matlabbatch{1}.spm.tools.cat.long.extopts.restypes.optimal = [1 0.1];
matlabbatch{1}.spm.tools.cat.long.extopts.ignoreErrors = 1;
matlabbatch{1}.spm.tools.cat.long.output.surface = 1;
matlabbatch{1}.spm.tools.cat.long.ROImenu.atlases.neuromorphometrics = 1;
matlabbatch{1}.spm.tools.cat.long.ROImenu.atlases.lpba40 = 0;
matlabbatch{1}.spm.tools.cat.long.ROImenu.atlases.cobra = 1;
matlabbatch{1}.spm.tools.cat.long.ROImenu.atlases.hammers = 0;
matlabbatch{1}.spm.tools.cat.long.ROImenu.atlases.ownatlas = {''};
matlabbatch{1}.spm.tools.cat.long.longTPM = 1;
matlabbatch{1}.spm.tools.cat.long.modulate = 1;
matlabbatch{1}.spm.tools.cat.long.dartel = 0;
matlabbatch{1}.spm.tools.cat.long.delete_temp = 1;

spm_jobman('run', matlabbatch);